Skip to content

Added Github\HttpClient\HttpClient::$client #393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2016
Merged

Added Github\HttpClient\HttpClient::$client #393

merged 1 commit into from
Jul 7, 2016

Conversation

sergeyklay
Copy link
Contributor

The Github\HttpClient\HttpClient::$client declared dynamically

@sergeyklay
Copy link
Contributor Author

@cursedcoder

/**
* @var ClientInterface
*/
public $client;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be private variable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Check please code

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what code should I check? can you please elaborate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cursedcoder For example lib/Github/Client.php:249 (current master branch):

$this->getHttpClient()->client->setBaseUrl($baseUrl . '/api/v3');

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making it private would be breaking anyway since it was defaulting to public already?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me - yes

@cursedcoder cursedcoder merged commit 311cf10 into KnpLabs:master Jul 7, 2016
@sergeyklay sergeyklay deleted the patch-2 branch July 7, 2016 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants